import { TrackOpTypes } from "../../utils.js";
import track from "../../effect/track.js";

export default function (target, key) {
  const result = Reflect.has(target, key);

  if (result) {
    track(target, TrackOpTypes.HAS, key);
  }

  return result;
}
